import { createApp } from "vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import { createRouter, createWebHashHistory } from "vue-router";
import App from "./App.vue";
import HomeView from "./views/HomeView.vue";

// 路由配置
const routes = [
    {
        path: "/",
        name: "Home",
        component: HomeView,
    },
];

const router = createRouter({
    history: createWebHashHistory(),
    routes,
});

// 创建应用实例
const app = createApp(App);

// 使用插件
app.use(router);
app.use(ElementPlus);

// 挂载应用
app.mount("#app");
